home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / PROTECT.TEC < prev    next >
Text File  |  1992-03-09  |  3KB  |  54 lines

  1. ID:PT Protection Level Explanation
  2. Quarterdeck Technical Note #120
  3. by Stan Young
  4. last revision:  12 February 1992
  5.  
  6. Q:  For what is the "Protection level" field in Change a Program used?
  7.  
  8. Q:  Why does my program run slower when I use protection level?
  9.  
  10. Q:  Will Protection level "fix" my ill-behaved programs?
  11.  
  12. Q:  What does Protection level do on my 286?
  13.  
  14. PROTECTION LEVEL
  15.  
  16.      The "Protection level" field of Change a Program can be changed on any 
  17. machine running DESQview, but only becomes active on 386 machines.
  18.      Protection level uses the paging capability of the 386 to trap programs 
  19. which perform operations outside of their normal memory space or which use 
  20. interrupts in unconventional and potentially destructive ways.  Such 
  21. operations could be considered "ill-behaved," and might be symptomatic of 
  22. programs which are in the process of crashing the system.
  23.      Protection level has no ability to correct such ill behavior on the part 
  24. of programs.  It exists in order to protect the rest of the system from a 
  25. crashing program and to report on what the program did.
  26.      It is also common that programs that generate "Protection" errors are 
  27. doing things that may be non-destructive and legitimate.  DESQview has no way 
  28. to evaluate the specific reasons why a program may have written outside its 
  29. memory space, only that it has done so.  Normally, for programs that have 
  30. proven to be reliable, you should keep Protection level set to zero.  Higher 
  31. numbers, particularly 2 and 3, will tend to slow programs down due to the 
  32. overhead of trapping memory access outside the program's partition.
  33.      Protection level is primarily provided as a diagnostic tool for use with 
  34. programs that are having problems running in DESQview.  The Protection Level 
  35. feature may report a useful error message that will help you try to figure out 
  36. why the program is failing.  Setting protection level for these programs 
  37. should usually prevent them from bringing down the system and the messages 
  38. produced when the protection error is trapped may serve to suggest to the 
  39. developer of the program what they might be doing wrong.  It is not useful to 
  40. have Protection Level set above 0 during the normal running of any program.  
  41. Almost any program can force a protection error to be reported at level 3 
  42. eventually, and programs that have no trouble running in DESQview can be 
  43. caused to have problems by setting Protection Level above 0. 
  44.      The specifics of the program operations that are trapped at different 
  45. levels of protection are proprietary to Quarterdeck, but in general, the 
  46. higher the number, the more "ill-behaved" operations will be trapped and 
  47. examined.
  48.  
  49.   ************************************************************************
  50.   *This technical note may be copied and distributed freely as long as it*
  51.   *is distributed in its entirety and it is not distributed for profit.  *
  52.   *         Copyright (C) 1991-2 by Quarterdeck Office Systems           *
  53.   ************************ E N D   O F   F I L E *************************
  54.